from sqlalchemy import Column
from sqlalchemy.sql.sqltypes import Integer, String, Text, TIMESTAMP
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class PunishmentInfo(Base):
    __tablename__ = "TYC_MR_PUNISHMENT_INFO"
    DECISIONDATE = Column(String(255))
    PUNISHNUMBER = Column(String(255))
    REASON = Column(Text)
    CONTENT = Column(Text)
    DEPARTMENTNAME = Column(String(255))
    SOURCE = Column(String(255))
    LEGALPERSONNAME = Column(String(255))
    REMARK = Column(String(255))
    PUNISHSTATUS = Column(String(255))
    TYPE = Column(String(255))
    TYPESECOND = Column(String(255))
    EVIDENCE = Column(String(1000))
    PUNISHNAME = Column(String(255))

    ENTNAME = Column(String(100))
    PRIPID = Column(String(36))
    REGNO = Column(String(50))
    UNISCID = Column(String(18))
    CREATE_TIME = Column(TIMESTAMP)
    UPDATE_TIME = Column(TIMESTAMP)